using System;
using System.Threading.Tasks;
using Volo.Abp.Application.Dtos;
using Joy.Erp.BasicArchives.Core.Filters;

namespace Joy.Erp.BasicArchives.Procurements
{
    public interface IPurchaseOrderTypeAppService
    {
        Task<PurchaseOrderTypeDto> GetAsync(Guid id);
        Task<PurchaseOrderTypeDto> FindAsync(string filter);
        Task<PurchaseOrderTypeDto> FindBySourceKeyAsync(string sourceKey, string sourceType);
        Task<PagedResultDto<PurchaseOrderTypeDto>> GetListAsync(FilterRequestDto input);
        Task<PagedResultDto<PurchaseOrderTypeDto>> QueryAsync(FilterGroupRequestDto input);
        Task<PurchaseOrderTypeDto> CreateAsync(PurchaseOrderTypeCreateDto input);
        Task<PurchaseOrderTypeDto> UpdateAsync(Guid id, PurchaseOrderTypeUpdateDto input);
        Task DeleteAsync(Guid id);
    }
}